import request from "@/utils/request";

// 专家组组长复审操作
export function getAuditExpertLeaderStatus(data) {
  return request({
    url: "/system/audit/auditExpertLeaderStatus",
    method: "post",
    data: data,
  });
}

// 审核操作
export function getAuditing(data) {
  return request({
    url: "/system/audit/auditStatus",
    method: "post",
    data: data,
  });
}

// 下载要公示的申请
export function getExportExcel(params) {
  return request({
    url: "/system/audit/exportExcel",
    method: "get",
    params,
  });
}

// 上传公示的结果
export function getUploadFile(data) {
  const formData = new FormData();
  formData.append("ids", data.ids);
  formData.append("file", data.file);
  formData.append("fileType", data.fileType);
  return request({
    url: "/system/audit/uploadFileBase",
    method: "post",
    data: formData,
  });
}

// 批量设置专家组、专家组长、院长、书记
export function getUpdateApply(params) {
  return request({
    url: "/system/audit/updateApply",
    method: "get",
    params,
  });
}

// 查询本学院下的老师列表
export function getUserList() {
  return request({
    url: "/system/audit/getUserList",
    method: "get",
  });
}
